/**
 * User: hellreuter
 * Date: 3/20/12
 * Time: 1:22 AM
 */
Ext.define('CT.view.secretario.Form',{
    extend: 'Ctc.view.Form',
    alias: 'widget.formsecretario',
    initComponent: function(){
        this.callParent(arguments);
    },
    buildItems: function(){
        return [{
            fieldLabel: 'Ficha',
            enforceMaxLength: 'true',
            maxLength: 6,
            minLength: 6,
            vtype: 'num',
            name: 'ficha'
        },{
            fieldLabel: 'Nombre',
            vtype: 'textspace',
            name: 'nombre'
        },{
            fieldLabel: 'Apellidos',
            vtype: 'textspace',
            name: 'apellidos'
        }];
    },
    buildButtons:function(){
        return [{
            text: 'Cancelar',
            handler: function(){
                this.up('form').getForm().reset();
            }
        },{
            text: 'Enviar',
            formBind: true,
            disabled: true,
            action: 'add'
        }];
    }
});
